package com.charging.service;

import com.charging.entity.Announcement;

import java.util.List;

public interface AnnouncementService {
    // 获取所有有效公告（已发布且未过期）
    List<Announcement> getAllValidAnnouncements();

    // 根据ID获取公告
    Announcement getAnnouncementById(Long id);

    // 添加公告
    void addAnnouncement(Announcement announcement);

    // 更新公告
    void updateAnnouncement(Announcement announcement);

    // 删除公告
    void deleteAnnouncement(Long id);

    // 根据类型获取公告
    List<Announcement> getAnnouncementsByType(String type);

    // 更新公告状态
    void updateAnnouncementStatus(Long id, String status);
}